package com.hmall.clients;

import com.hmall.common.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("userservice")
public interface AddressClient {

    @GetMapping("/address/{id}")
    Address findById(@RequestParam long id);
}
